home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 031a / setdrw.zip / SETDRW.WBT
Text File  |  1991-10-24  |  934b  |  33 lines

  1. ; -- SETDRW: "Set Drive Window" Batch Builder Batch file
  2. ; -- by Jim Ferguson, 71477, 2345
  3.  
  4. ;  This Batch Builder file will return the C:\ drive window
  5. ;  to a preset size upon startup or when re-opened.
  6. ;
  7. ;  Use the WinPosition("C:\") function to get the
  8. ;  position of the Drive Window. Copy those numbers
  9. ;  onto the line containing the WinPosition() function
  10. ;
  11. ;  Place this file in the AutoStart group to have it in
  12. ;  effect for the entire duration of the NDW session
  13.  
  14. ;  -----------------------------------------------------------------------
  15.  
  16. WinHide("")    ;hides the running .wbt icon
  17.  
  18. ; -- loop until the C:\ drive pane is present
  19.  
  20. :waitfordrive
  21. If WinExist("C:\") == @TRUE then goto resizedrive
  22. Yield
  23. Yield
  24. Yield
  25. goto waitfordrive
  26.  
  27. ;  -- size the C:\ drive window and pause until
  28. ; -- drive window is closed
  29.  
  30. :resizedrive
  31. WinPlace(78,79,809,735, "C:\")
  32. WinWaitClose("C:\")
  33. goto waitfordrive